package com.hehua.FactoryMethod;

public class FactoryMethodClient {
    public static void main(String[] args) throws Exception {
        Logger logger;
        LoggerFactory loggerFactory;
        Object bean = XmlUtil.getBean();
        loggerFactory = (LoggerFactory) bean;
        logger = loggerFactory.createLogger();
        logger.writeLog();
    }
}
